<template>
  <h1>El-按钮组件</h1>
  <!-- 如果按钮有样式,说明element-plus组件库引入成功了 -->
  <!-- 如果<el-button有提示,说明IDEA的element插件安装成功了 -->
  <!-- 参照笔记完成以上两步,注意需要重启IDEA! -->
  <el-button>我是按钮</el-button>
  <!-- 1.type切换按钮主题色 -->
  <el-button type="primary">按钮</el-button>
  <!-- 2.plain空白按钮 悬停时才是深色 -->
  <el-button type="success" plain>按钮</el-button>
  <!-- 3.round胶囊型按钮 -->
  <el-button type="info" round>按钮</el-button>
  <!-- 4.circle圆形按钮 -->
  <el-button type="warning" circle>按钮</el-button>
  <!-- 5.disabled禁用 -->
  <el-button type="danger" disabled>按钮</el-button>
  <!-- 6.size修改按钮的尺寸 large大号按钮 small小号按钮 -->
  <el-button type="danger" size="large">按钮</el-button>
  <el-button type="danger" size="small">按钮</el-button>
  <!-- 7.链接按钮 link -->
  <a href="https://www.baidu.com">
    <el-button link>链接按钮</el-button>
  </a>
  <a href="https://www.jd.com">
    <el-button link type="danger">链接按钮</el-button>
  </a>
  <hr>
  <el-button :icon="Search" circle />
  <el-button type="primary" :icon="Edit" circle />
  <el-button type="success" :icon="Check" circle />
  <el-button type="info" :icon="Message" circle />
  <el-button type="warning" :icon="Star" circle />
  <el-button type="danger" :icon="Delete" circle />
</template>

<script setup>
import {
  Check,
  Delete,
  Edit,
  Message,
  Search,
  Star,
} from '@element-plus/icons-vue'
</script>

<style scoped>

</style>